﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AsmDependency.UIComponents
{
    public class CMenuItem : MenuItem
    {
        private MenuItemCommand _command;

        // Summary:
        //     Initializes a System.Windows.Forms.MenuItem with a blank caption.
        public CMenuItem():this(string.Empty)
        { 
        }
        //
        // Summary:
        //     Initializes a new instance of the System.Windows.Forms.MenuItem class with
        //     a specified caption for the menu item.
        //
        // Parameters:
        //   text:
        //     The caption for the menu item.
        //public customMenuItem(string text) : base(text)
        public CMenuItem(string text)
            : base(MenuMerge.Add, 0, Shortcut.None, text, null, null, null, null)
        { 
        }

        public CMenuItem(string text, string helpText, Shortcut shortcut, Image glyph) 
            : base(MenuMerge.Add, 0, shortcut, text, null, null, null, null) 
        { 
        }

        public CMenuItem(string text, MenuItem[] items, bool ownerDraw) 
            : base(MenuMerge.Add, 0, Shortcut.None, text, null, null, null, items) 
        { 
        }

        internal MenuItemCommand Command
        {
            get
            {
                return this._command;
            }
            set
            {
                this._command = value;
            }
        }
    }
}
